<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: daiyuhua
  Date: 2021/5/20
  Time: 16:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>


<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link rel="stylesheet" href="<%=path%>/css/pintuer.css">
    <link rel="stylesheet" href="<%=path%>/css/admin.css">
    <script src="<%=path%>/js/jquery.js"></script>
    <script src="<%=path%>/js/pintuer.js"></script>
    <script src="<%=path%>/js/vue.js"></script>
</head>
<body>
<div class="panel admin-panel">
    <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>修改家庭档案</strong></div>
    <div class="body-content">
        <form method="post" class="form-x" action="<%=path%>/familyEditAction">
            <div class="form-group">
                <div class="label">
                    <label>县编号：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="${family.proId}" name="proid" readonly="readonly" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>乡镇编号：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="${family.cityId}" name="cityid" readonly="readonly" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>村编号：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="${family.vilId}" name="villid" readonly="readonly" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>组编号：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="${family.groupId}" name="groupid" readonly="readonly" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>家庭编号：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="${family.familyId}" name="familyid" readonly="readonly" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>家庭人口：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="${family.familyNum}" name="familynum" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>农业人口：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="${family.agrNum}" name="agrnum" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>家庭住址：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="${family.address}" name="address" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>户主姓名：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="${familyMain.fullname}" name="familyname" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>身份证号：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="${familyMain.idNo}" name="idNo" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>性别：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="${familyMain.sex}" name="sex" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>出生日期：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="${familyMain.birthday}" name="birthday" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>民族：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="${familyMain.national}" name="national" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>健康状况：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="${familyMain.health}" name="health" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>文化：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="${familyMain.culture}" name="culture" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>人员属性：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="${familyMain.resAttribute}" name="resAttr" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>是否农业户口：</label>
                </div>
                <div class="field">
                    <select name="agrRes" class="input w50" >
                        <c:if test="${familyMain.agrResidence == '是'}">
                            <option value="${familyMain.agrResidence}" selected="selected">是</option>
                            <option value="否">否</option>
                        </c:if>
                        <c:if test="${familyMain.agrResidence == '否'}">
                            <option value="${familyMain.agrResidence}" selected="selected">否</option>
                            <option value="是">是</option>
                        </c:if>
                    </select>
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>婚姻情况：</label>
                </div>
                <div class="field">
                    <select name="marry" class="input w50">
                        <option value="已婚">已婚</option>
                        <option value="未婚">未婚</option>
                    </select>
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>工作地址：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="${familyMain.workAdd}" name="workAdd" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>联系电话：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="${familyMain.telephone}" name="telephone" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>登记时间：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="${family.createTime}" name="createtime" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>登记人：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" value="${family.logName}" name="logName" />
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label></label>
                </div>
                <div class="field">
                    <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
</html>